package com.qf.day13;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedList;

public class HashSetDemo {
    public static void main(String[] args) {
        ArrayList<Integer> list =new ArrayList<>();
        list.add(100);
        list.add(100);
        list.add(50);
        list.add(1);
        HashSet<Integer> set = new HashSet<>(list);
        System.out.println(set);

    }
}
